#include <stdio.h>
int main()
{
    char word[6];
    char WORD[6];
    int asc[6];
    int i;
    scanf("%s", word);
    for (i = 0; i < 6; i++)
    {
        asc[i] = (int)word[i];
        WORD[i] = word[i] - 32;
        asc[i] = (asc[i] - 32) % 10;
        printf("%c->%c->%d\n", word[i], WORD[i], asc[i]);
    }
    return 0;
}